import axios from '@/config/httpConfig'
import qs from 'qs'

// 获取轮播列表
export function getCarouselList(data) {
    return axios.post('/admin/carousel/getCarouselPage', data)
}

// 添加轮播图
export function addCarousel(data) {
    return axios.post('/admin/carousel/addCarousel', data)
}

// 修改轮播图
export function updateCarousel(data) {
    return axios.post('/admin/carousel/updateCarousel', data)
}

// 修改轮播图
export function getCarouselDetail(data) {
    return axios.post(`admin/carousel/getCarousel/${data.id}`)
}

// 删除轮播图
export function deleteCarousel(data) {
    return axios.post(`/admin/carousel/deleteCarousel/${data.id}`, data)
}
